package com.example.example003;

class ParentClass4 {
	public String field = "父类变量";
}

public class SubClass4 extends ParentClass4 {
	
	protected String field = "子类变量";
	
	public static void main(String[] args) {
		
		SubClass4 subClass = new SubClass4();
		
		System.out.println(subClass.field);
		
	}
}
